<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .container {
            width: 1190px;
            height: 100px;
            background-color: silver;
            margin: 0 auto;
            position: relative;
        }
        .jiu {
            vertical-align: middle;
        }

        .close {
            display: block;
            position: absolute;
            top: 0;
            right: 0;
            cursor: pointer;
        }
    </style>
</head>
<body>
    <div class="container">
        <img class="jiu" src="./image/luzhou.jpg" alt="酒">
        <img class="close" src="./image/close.jpg" alt="关闭">
    </div>
    <script>
        var container = document.querySelector(".container");
        var jiu = document.querySelector(".jiu");
        var close = document.querySelector(".close");
        close.onclick = function () {
            jiu.style["display"] = "none";
            container.style["display"] = "none";
        }
    </script>
</body>
</html>